package com.example.novelstory.dao.dxy;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.novelstory.entity.Author;
import org.apache.ibatis.annotations.Mapper;

@Mapper//Dao层的注解

public interface AuthorDao extends BaseMapper<Author> {
//        @Select("select * from author")
//        public List<Author> findauthorAll();
//
//        @Insert("INSERT INTO author(id,authorname,username,login_time) VALUES(#{id,jdbcType=VARCHAR},#{authorname,jdbcType=VARCHAR},#{username,jdbcType=VARCHAR},#{login_time,jdbcType=VARCHAR})")
//        public int addauthorInfo(@Param("id") int id, @Param("authorname") String authorname, @Param("username") String username, @Param("login_time") int login_time);
//
//        @Delete("DELETE FROM author WHERE id=#{id,jdbcType=VARCHAR}")
//        public int deleteauthorInfo(int id);
//
//        @Update("UPDATE author SET authorname=#{authorname,jdbcType=VARCHAR},username=#{username,jdbcType=VARCHAR},login_time=#{login_time,jdbcType=VARCHAR} WHERE id=#{id,jdbcType=VARCHAR}")
//        public int updeteauthorInfo(@Param("id") int id, @Param("authorname") String authorname, @Param("username") String username, @Param("login_time") int login_time);

    }
